
import {FormOption} from "@/components/SpursForm/formType.ts";


export const getFormConfig = (categoryList:{value:string,label:string}[]):FormOption =>{
    return {
        formItems: [
            {
                field: 'pName',
                type: 'input',
                label: '用户名',
                disabled:false,
                placeholder: '请输入用户名'
            },
            {
                field: 'categoryId',
                type: 'select',
                label: '需求说明',
                placeholder: '请输入需求说明',
                options: categoryList
            },
          
           
        ],
        labelWidth: '120px'//标签的长度
    }
}
              